package com.common.playing.apps.comm.tools;


import com.common.playing.apps.comm.util.ParseUtil;

/**
 * Created by sam on 15/8/16.
 */
public class NetMsgUtil {


    public static String getResponseMsg(String code){
        String msg = null;
        switch (ParseUtil.parseInteger(code, 0)){
            case 10000:
                msg="success";
                break;
            case 10001:
                msg="接口版本号错误!";
                break;
            case 10002:
                msg="数据入库失败";
                break;
            case 10003:
                msg="用户被禁用";
                break;
            case 10004:
                msg="登录用户密码错误";
                break;
            case 10005:
                msg="没有此用户名";
                break;
            case 10006:
                msg="注册手机号已被使用";
                break;
            case 10007:
                msg="注册昵称已被使用";
                break;
            case 10008:
                msg="手机号格式错误";
                break;
            case 10009:
                msg="请输入手机号";
                break;
        }

        return msg;

    }
}
